package com.rika.service.impl;

import com.rika.dao.PomainDao;
import com.rika.pojo.PoMain;
import com.rika.service.PomainService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
@Service
public class PomainServiceImpl implements PomainService {
    @Resource
    private PomainDao pomainDao;

    @Override
    public List<PoMain> selectAllPomain(Map<String, Object> params) {
        return pomainDao.selectAllPomain(params);
    }

    @Override
    public Integer countAll1() {
        return pomainDao.countAll1();
    }

    @Override
    public void addPomain(PoMain poMain) {
        pomainDao.addPomain(poMain);
    }

    @Override
    public void deletePoMain(Long poId) {
        pomainDao.deletePoMain(poId);
    }

    @Override
    public List<PoMain> selectByPoId(Long poId) {
        return pomainDao.selectByPoId(poId);
    }

    @Override
    public void updatePoMain(PoMain poMain) {
        pomainDao.updatePoMain(poMain);
    }

    @Override
    public List<PoMain> selectAllPomainForSettle(Map<String, Object> params) {
        return pomainDao.selectAllPomainForSettle(params);
    }

    @Override
    public void settlePoMain(Map<String, Object> params) {
        pomainDao.settlePoMain(params);
    }

    @Override
    public List<PoMain> selectPoMainQuery(Map<String, Object> params) {
        return pomainDao.selectPoMainQuery(params);
    }

    @Override
    public List<PoMain> selectPoMainNotInStore(Map<String, Object> params) {
        return pomainDao.selectPoMainNotInStore(params);
    }

    @Override
    public void updatePoMainToInStore(Map<String, Object> params) {
        pomainDao.updatePoMainToInStore(params);
    }

    @Override
    public Integer selectPoMainNotInStoreCount() {
        return pomainDao.selectPoMainNotInStoreCount();
    }

    @Override
    public List<PoMain> selectPoMainExpend1(Map<String, Object> params) {
        return pomainDao.selectPoMainExpend1(params);
    }

    @Override
    public Integer selectPoMainExpend1CountAll() {
        return pomainDao.selectPoMainExpend1CountAll();
    }

    @Override
    public void updateexpend1(PoMain poMain) {
        pomainDao.updateexpend1(poMain);
    }

    @Override
    public List<PoMain> selectPoMainExpend2(Map<String, Object> params) {
        return pomainDao.selectPoMainExpend2(params);
    }

    @Override
    public Integer selectPoMainExpend2CountAll() {
        return pomainDao.selectPoMainExpend2CountAll();
    }

    @Override
    public List<PoMain> selectPoMainExpend3(Map<String, Object> params) {
        return pomainDao.selectPoMainExpend3(params);
    }

    @Override
    public Integer selectPoMainExpend3CountAll() {
        return pomainDao.selectPoMainExpend3CountAll();
    }

    @Override
    public void updateexpend2(PoMain poMain) {
        pomainDao.updateexpend2(poMain);
    }

    @Override
    public List<PoMain> selectPoMainNum(Map<String, Object> params) {
        return pomainDao.selectPoMainNum(params);
    }

    @Override
    public Integer selectEndNum(Map<String, Object> params) {
        return pomainDao.selectEndNum(params);
    }

    @Override
    public List<PoMain> selectEndPomainPrice(Map<String, Object> params) {
        return pomainDao.selectEndPomainPrice(params);
    }

    @Override
    public List<PoMain> selectPoMainReportList(Map<String, Object> params) {
        return pomainDao.selectPoMainReportList(params);
    }

    @Override
    public Integer selectAllPomainForSettleCountAll(String payType) {
        return pomainDao.selectAllPomainForSettleCountAll(payType);
    }
}
